package com.msb.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.dto.SeckillOrderDto;
import com.msb.common.exception.NoStockException;
import com.msb.common.utils.PageUtils;
import com.msb.mall.order.entity.OrderEntity;
import com.msb.mall.order.entity.vo.OrderConfirmVo;
import com.msb.mall.order.entity.vo.OrderResponseVo;
import com.msb.mall.order.entity.vo.OrderSubmitVo;
import com.msb.mall.order.entity.vo.PayVO;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author lwq
 * @email 1907326957@qq.com
 * @date 2024-06-12 22:22:11
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    OrderResponseVo orderSubmit(OrderSubmitVo vo) throws NoStockException;

    PayVO getOrderPay(String orderSn);


    void handleOrderComplete(String outTradeNo);

    void quickCreateOrder(SeckillOrderDto dto);
}

